package com.itheima.utils;

import java.io.InputStream;

/**
 *
 */
public class COSFileComp {

    private String fileName;
    private long length;
    private InputStream inputStream;
    private String contentType;

    public COSFileComp() {
    }

    public COSFileComp(String fileName, long length, InputStream inputStream, String contentType) {
        this.fileName = fileName;
        this.length = length;
        this.inputStream = inputStream;
        this.contentType = contentType;
    }

    public String getFileName() {
        return fileName;
    }

    /**
     * 此fileName包含文件所在虚拟目录和文件名
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    public InputStream getInputStream() {
        return inputStream;
    }

    public void setInputStream(InputStream inputStream) {
        this.inputStream = inputStream;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
}
